* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
}

.section {
  margin-bottom: 20px;
}

.section h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
  padding-left: 10px;
}

.section h3.hot {
  border-left: 4px solid #dc3545;
}

.section h3.new {
  border-left: 4px solid #007bff;
}

.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 5px;
  margin-bottom: 10px;
}

.video-item {
  font-size: 16px;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform 0.2s;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
}

.video-item:hover {
  transform: translateY(-2px);
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.search-box {
  position: relative;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 30px;
}

#searchInput {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s;
}

#searchInput:focus {
  border-color: #007bff;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}

.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .container {
    padding: 12px;
  }

  #searchInput {
    font-size: 14px;
    padding: 10px 14px;
  }

  .search-result-item {
    padding: 10px 14px;
  }
}